From e6462d8438d7eccd9c3c812a65036b210cf7ae33 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 22 Dec 2024 17:22:23 +0000 Subject: Add symbols for tables --- ...(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 5 +++-- ...(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 3 +++ ...(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 7 +++++-- 3 files changed, 11 insertions(+), 4 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 69d64a0c..175a866e 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithElementSegments(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -10,7 +10,7 @@ Function[3]: - func[1] sig=0 - func[2] sig=0 Table[1]: - - table[0] type=funcref initial=1 + - table[0] type=funcref initial=1 Elem[1]: - segment[0] flags=0 table=0 count=2 - init i32=0 - elem[0] = ref.func:0 @@ -21,10 +21,11 @@ Code[3]: - func[2] size=2 Custom: - name: "linking" - - symbol table [count=3] + - symbol table [count=4] - 0: F func=0 [ binding=global vis=default ] - 1: F func=1 [ binding=global vis=default ] - 2: F func=2 [ binding=global vis=default ] + - 3: T table=0 [ binding=global vis=default ] Custom: - name: "name" - func[0] diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 81acd316..cd120dd1 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTableImports(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -8,6 +8,9 @@ Import[2]: - table[1] type=funcref initial=2 max=5 <- ModuleName2.EntityName2 Custom: - name: "linking" + - symbol table [count=2] + - 0: T table=0 [ undefined explicit_name binding=global vis=default ] + - 1: T table=1 [ undefined explicit_name binding=global vis=default ] Custom: - name: "name" diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 5d8e2af5..d6b7a5e5 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.structure.binary.WasmBinaryFormatModulesTests]/[method:canSerializeModuleWithTables(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -4,10 +4,13 @@ module.wasm: file format wasm 0x1 Section Details: Table[2]: - - table[0] type=funcref initial=1 - - table[1] type=externref initial=2 max=3 + - table[0] type=funcref initial=1 + - table[1] type=externref initial=2 max=3 Custom: - name: "linking" + - symbol table [count=2] + - 0: T table=0 [ binding=global vis=default ] + - 1: T table=1 [ binding=global vis=default ] Custom: - name: "name" -- cgit v1.2.3